package com.cy.teducommunitys.com.cy.mapper;

import com.cy.teducommunitys.com.common.vo.Node;
import com.cy.teducommunitys.com.cy.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单 Mapper 接口
 * </p>
 *
 * @author mdzz
 * @since 2019-07-19
 */

public interface MenuMapper extends BaseMapper<Menu> {
    @Select("select menuId as id,name,parentId from menu")
    List<Node> findZtreeMenuNodes();
    List<Map<String,Object>> findObjects();

}
